home *** CD-ROM | disk | FTP | other *** search
/ Cyber Strip Poker / Cyber Strip Poker.rar / IMAGE.img / poker28.dir / 00075_Script_75 < prev    next >
Text File  |  1995-08-14  |  4KB  |  172 lines

  1. --CheckDHandFinal
  2. on checkDHandFinal
  3.   global nameout, namein
  4.   global dhand,dV,dH,dH2
  5.   global d1,d2,d3,d4,d5
  6.   global ds1,ds2,ds3,ds4,ds5,dfeel
  7.   put 0 into dfeel
  8.   set dV=0
  9.   set dH=0
  10.   set dH2=0
  11.   -- checkStraightFlush
  12.   if (ds1=ds2) and (ds2=ds3) and (ds3=ds4) and (ds4=ds5) and (d2-d1=1) and ¼
  13.   (d3-d2=1) and (d4-d3=1) and (d5-d4=1) then
  14.     if d5=12 then
  15.       put "I GOT A ROYAL FLUSH!!" into dhand
  16.         set dfeel = 200
  17.       set dV=8
  18.       set dH=((d5*4)+ds5)
  19.       set dH2=ds5
  20.       exit
  21.     else
  22.       put "SEE MY STRAIGHT FLUSH, HON" into dhand
  23.         set dfeel = 200
  24.       set dV=8
  25.       set dH=((d5*4)+ds5)
  26.       set dH2=ds5
  27.       exit
  28.     end if
  29.   end if
  30.   -- checkFourOfAKind
  31.   if (d1=d2) and (d2=d3) and (d3=d4) then
  32.     put "I Got Four Of A Kind" into dhand
  33.         set dfeel = 200
  34.     set dV=7
  35.     set dH=((d4*4))
  36.     set dH2=ds4
  37.     exit
  38.   end if
  39.   if (d2=d3) and (d3=d4) and (d4=d5) then
  40.     put "Four Of A Kind For Me" into dhand
  41.         set dfeel = 200
  42.     set dV=7
  43.     set dH=((d4*4))
  44.     set dH2=ds5
  45.     exit
  46.   end if
  47.   -- checkFullHouse
  48.   if (d1=d2) and (d2=d3) and (d4=d5) then
  49.     put "I Got A Full House, Baby" into dhand
  50.         set dfeel = 200
  51.     set dv=6
  52.     set dh=((d3*4))
  53.     set dH2=((d5*4)+ds3)
  54.     exit  
  55.   end if
  56.   if (d1=d2) and (d3=d4) and (d4=d5) then
  57.     put "Oooh, I Filled A Full House" into dhand
  58.         set dfeel = 200
  59.     set dv=6
  60.     set dh=((d3*4))
  61.     set dH2=((d2*4)+ds5)
  62.     exit  
  63.   end if  
  64.   -- checkFlush
  65.   if (ds1=ds2) and (ds2=ds3) and (ds3=ds4) and (ds4=ds5) then
  66.     put "Flush In My Hand" into dhand
  67.         set dfeel = 150
  68.     set dv=5
  69.     set dh=((d5*4)+ds5)
  70.     set dH2=ds5
  71.     exit 
  72.   end if
  73.   -- checkStraight
  74.   if (d2-d1=1) and  (d3-d2=1) and (d4-d3=1) and (d5-d4=1) then
  75.     put "Straight For Me" into dhand
  76.      set dfeel = 150
  77.     set dv=4
  78.     set dh=((d5*4)+ds5)
  79.     set dH2=ds5
  80.     exit
  81.   end if
  82.   -- checkTriplets
  83.   if (d1=d2) and (d2=d3) then
  84.     put "I Got Three Of A Kind" into dhand
  85.      set dfeel = 100
  86.     set dv=3
  87.     set dh=((d3*4))
  88.     set dH2=ds5
  89.     exit 
  90.   end if
  91.   if (d2=d3) and (d3=d4) then
  92.     put "Three Of A Kind For Me" into dhand
  93.   set dfeel = 100
  94.     set dv=3
  95.     set dh=((d4*4))
  96.     set dH2=ds5
  97.     exit 
  98.   end if
  99.   if (d3=d4) and (d4=d5) then
  100.     put "I Show Three Of A Kind" into dhand
  101.   set dfeel = 100
  102.     set dv=3
  103.     set dh=((d5*4))
  104.     set dH2=ds2
  105.     exit 
  106.   end if
  107.   -- checkTwoPair
  108.   if (d1=d2) and (d3=d4) then
  109.     put "I Got Two Pair, Sweetie" into dhand
  110.   set dfeel = 75
  111.     set dv=2
  112.     set dh=((d4*4))
  113.     set dH2=ds5
  114.     exit
  115.   end if
  116.   if (d1=d2) and (d4=d5) then
  117.     put "Two Pair, Read 'em & Weep" into dhand
  118.   set dfeel = 75
  119.     set dv=2
  120.     set dh=((d5*4))
  121.     set dH2=ds3
  122.     exit
  123.   end if
  124.   if (d2=d3) and (d4=d5) then
  125.     put "I Show Two Pair" into dhand
  126.   set dfeel = 75
  127.     set dv=2
  128.     set dh=((d5*4))
  129.     set dH2=ds1
  130.     exit
  131.   end if 
  132.   -- checkOnePair
  133.   if (d1=d2) then
  134.     put "I Have One Pair" into dhand
  135.   set dfeel = 20
  136.     set dv=1
  137.     set dh=((d2*4))
  138.     set dH2=ds5
  139.     exit
  140.   end if
  141.   if (d2=d3) then
  142.     put "I Got One Pair" into dhand
  143.   set dfeel = 30
  144.     set dv=1
  145.     set dh=((d3*4))
  146.     set dH2=ds5
  147.     exit
  148.   end if
  149.   if (d3=d4) then
  150.     put "One Pair For Me" into dhand
  151.   set dfeel =40
  152.     set dv=1
  153.     set dh=((d4*4))
  154.     set dH2=ds5
  155.     exit
  156.   end if
  157.   if (d4=d5) then
  158.     put "One Pair In My Corner" into dhand
  159.   set dfeel = 50
  160.     set dv=1
  161.     set dh=((d5*4))
  162.     set dH2=ds3
  163.     exit
  164.   end if
  165.   -- decideNoPair
  166.   put d5 into namein
  167. namer
  168.   put "I Got Nothing... "&nameout&" For Me" into dhand
  169.   set dfeel = 5
  170.   set dv=0
  171.   set dh=((d5*4))
  172.   set dH2=((d4*4))